import request from '@/utils/request'

// 查询电影图片列表
export function listMoviePhoto(query) {
  return request({
    url: '/movie/photo/list',
    method: 'get',
    params: query
  })
}

// 查询电影图片详细
export function getMoviePhoto(moviePhotoId) {
  return request({
    url: '/movie/photo/' + moviePhotoId,
    method: 'get'
  })
}

// 新增电影图片
export function addMoviePhoto(data) {
  return request({
    url: '/movie/photo',
    method: 'post',
    data: data
  })
}

// 修改电影图片
export function updateMoviePhoto(data) {
  return request({
    url: '/movie/photo',
    method: 'put',
    data: data
  })
}

// 删除电影图片
export function delMoviePhoto(moviePhotoId) {
  return request({
    url: '/movie/photo/' + moviePhotoId,
    method: 'delete'
  })
}
